package com.lzp.batch;

import org.apache.poi.ss.formula.functions.T;
import org.springframework.batch.item.ItemWriter;
import org.springframework.batch.item.file.FlatFileItemWriter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author : lzp
 * @date : 2021/9/28 10:06
 * @describe : TODO
 * @vision 1.0
 */
@Component
public class MyExcelWriter implements ItemWriter<Object> {
//    @Override
//    public void write(List<? extends T> items) throws Exception {
//        items.forEach(System.out::println);
//    }

    @Override
    public void write(List<?> items) throws Exception {
        items.forEach(System.out::println);
    }
}
